Skip to content

Conversation

@henrythe9th
Copy link
Contributor

temperature can be set to 0 to regardless of top_k setting to force deterministic behavior

temperature can be set to 0 to regardless of top_k setting to force deterministic behavior
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rasbt
Copy link
Owner

rasbt commented Apr 13, 2025

Good catch, you are correct, that was a bit unclear. It said

Setting to top_k=None and applying no temperature scaling;

but your version (temperature=0.0) is much simpler and easier to understand. Thanks!!

@rasbt rasbt merged commit 02779f5 into rasbt:main Apr 13, 2025
13 checks passed
rasbt added a commit that referenced this pull request Aug 17, 2025
* updated exercise 5.3

temperature can be set to 0 to regardless of top_k setting to force deterministic behavior

* fix notebook json

---------

Co-authored-by: Sebastian Raschka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants